﻿<UserControl x:Class="Citrix.XaAdminMobile.Resources.ErrorStatusView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:prop="clr-namespace:Citrix.XaAdminMobile.Properties"
             mc:Ignorable="d" 
             d:DesignHeight="128" d:DesignWidth="398"
             Visibility="{Binding ErrorVisibility}">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      <RowDefinition/>
    </Grid.RowDefinitions>

    <Rectangle Style="{DynamicResource RectangleSeparatorStyle}" Fill="DarkGray"/>

    <!-- Title -->
    <TextBlock Grid.Row="1" Text="{x:Static prop:Resources.ErrorTitle}" FontSize="18" FontWeight="Bold"
               HorizontalAlignment="Center" Margin="5"/>
    
    <!-- Error message -->
    <TextBlock Grid.Row="2" Text="{Binding ErrorMessage}" FontSize="14" Margin="5"
               TextWrapping="Wrap"/>
  </Grid>
</UserControl>
